package ly.gupao.edu.java8.Strategy;

/**
 * @author: liyang
 * @date：2018/11/8 0008
 * describe：
 */
public class Context {

    private MyStrategy myStrategy;

    public Context(MyStrategy myStrategy) {
        this.myStrategy = myStrategy;
    }

    public void contextInterface(){
        myStrategy.execute();
    }
}
